package cn.iune.erp.customer;


import java.sql.SQLException;
import java.util.List;

import com.alibaba.fastjson.JSONObject;

public interface IFileCustomerDao {
	
	public void insert(FileCustomer obj);
	
	public void delete(String fID);

	public FileCustomer update(FileCustomer obj) ;

	public List<FileCustomer> getAll();
	
	public FileCustomer getByID(String fID);
	
	public FileCustomer getByNo(String customerNo, String enterpriseNo);
	
	public FileCustomer getByName(String customerName, String enterpriseNo);
	
	public FileCustomer getByOgnID(String ognID, String enterpriseNo);


	JSONObject queryUNION(JSONObject data) throws SQLException;

	JSONObject query(JSONObject data) throws SQLException;

	FileCustomer getByMobilePhone(String sMobilePhone, String enterpriseNo);

	FileCustomer getByLoginName(String sLoginName, String enterpriseNo);

	FileCustomer getByMemberNo(String memberNo, String enterpriseNo);

	FileCustomer getByMobilePhone(String sMobilePhone, int isMember, String enterpriseNo);

	List<FileCustomer> getList(String enterpriseNo);

	JSONObject create(JSONObject data);

}
